﻿/*
 *	主控
 */

$(window).load(function () {
   
});
$(document).ready(function () {
//    btn_play();
//    btn_close_play();
    btn_play_game1();
    btn_play_game2();
    btn_play_game3();
    btn_play_game4();
    btn_play_game5();

});

function btn_play_game1() {
    $("#btn_play_game1").click(function () {
        location.href = "play.htm?id=2013030411.swf";
    });
}
function btn_play_game2() {
    $("#btn_play_game2").click(function () {
        location.href = "play.htm?id=2013022501.swf";
    });
}


//function btn_play_game2() {
//    $(".game_box_btn_a").click(function () {
//        location.href = "test.htm?id=2013030411.swf";
//    });
//}



//function btn_play() {
//    $(".game_box_btn_a").click(function () {
//        location.href = "test.htm?id=2013022501.swf";




////        $("#mainplay_div").css("margin", "0 auto");
////        $("#mainplay_div").css("margin-top", "100px");

////        $("#mainplay_div").css("margin-bottom", "100px");
////        $("#mainplay_div").css("height", "596px");
////        $('html, body, .content').animate({ scrollTop: $(document).height() }, 1000);
////        $("#btn_closeplay_a").css("height", "60px");

////        $("#mainplay_div").css("height", "596px");
////        $('#Div1').media({
////            src: '../Download/2013030411.swf',
////            width: 568,
////            height: 91,
////            myVar1: 'myValue1'
////        });
//        // $("html,body").animate({ scrollTop: $("#footer_div").offset().top }, 1000); scrollTop:0 btn_closeplay_a//
//    });
//}

//function btn_close_play() {
//    $("#btn_closeplay_a").click(function () {
//        //        $("#mainplay_div").css("margin", "0 auto");
//        //        $("#mainplay_div").css("margin-top", "100px");
//        //        $("#mainplay_div").css("margin-bottom", "100px");
//        //        $("#mainplay_div").css("height", "596px");
//        //        $('html, body, .content').animate({ scrollTop: $(document).height() }, 1000);

//        // $("html,body").animate({ scrollTop: $("#footer_div").offset().top }, 1000); scrollTop:0 //
//        $("#mainplay_div").css("margin", "0 auto");
//        $("#mainplay_div").css("height", "0px");
//        $("#btn_closeplay_a").css("height", "0px");
//    });
//}